package com.geekaca.oopd3.innerclass;

public class Car {
    private  String name="红车";

    public void run(){
        Engine engine = new Engine();
        engine.powerOn();
    }
    class  Engine{
        public  void powerOn(){
            System.out.println(name + "引擎开始运行");
        }
    }

    public static void main(String[] args) {
        Car car = new Car();
        car.run();
    }
}
